package com.zjy.dao;

import com.zjy.bean.Order;
import com.zjy.dto.OrderParam;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;
import tk.mybatis.mapper.common.Mapper;

import java.util.List;

@Repository
public interface OrderMapper extends Mapper<Order> {
    int deleteOrderById(@Param("idList")List<String> idList);

    Order selectByOrderId(String orderId);

    List<Order> selectOrderList(OrderParam orderParam);

    int getOrderCount(OrderParam orderParam);

    int selectOrderTotalCount();

    List<Order> selectOrderTodayCount(@Param("begin") String begin,@Param("now") String now);
}